xl: optionally print timestamps when running xl commands
authorOlaf Hering <olaf@aepfle.de>
Tue, 9 Feb 2021 15:45:35 +0000 (16:45 +0100)
committerIan Jackson <iwj@xenproject.org>
Tue, 9 Feb 2021 17:10:23 +0000 (17:10 +0000)
commit687121f8a0e7c1ea1c4fa3d056637e5819342f14
tree6295508dbf71a94c2fd692a212ceea964a23a495
parent7a321c3676250aac5bacb1ae8d7dd22bfe8b1448
xl: optionally print timestamps when running xl commands

Add a global option "-T" to xl to enable timestamps in the output from
libxl and libxc. This is most useful with long running commands such
as "migrate".

During 'xl -v.. migrate domU host' a large amount of debug is generated.
It is difficult to map each line to the sending and receiving side.
Also the time spent for migration is not reported.

With 'xl -T migrate domU host' both sides will print timestamps and
also the pid of the invoked xl process to make it more obvious which
side produced a given log line.

Note: depending on the command, xl itself also produces other output
which does not go through libxentoollog. As a result such output will
not have timestamps prepended.

This change adds also the missing "-t" flag to "xl help" output.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
docs/man/xl.1.pod.in
tools/xl/xl.c
tools/xl/xl.h
tools/xl/xl_migrate.c